package com.example.casper.Experiment2024.data;

import java.io.Serializable;

public class Book implements Serializable {
    // 书籍的封面，标题和价格get，set用法
    private int coverResourceId;
    private String title;
    private Double price;
    public Double getPrice() {
        return price;
    }
    public void setPrice(Double price) {
        this.price = price;
    }
    public Book(String title, Double price, int coverResourceId) {
        this.title = title;
        this.price = price;
        this.coverResourceId = coverResourceId;
    }
    public int getCoverResourceId() {
        return coverResourceId;
    }
    public String getTitle() {
        return title;
    }
    public void setCoverResourceId(int coverResourceId) {
        this.coverResourceId = coverResourceId;
    }
    public void setTitle(String title) {
        this.title = title;
    }
}